/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package persistencia;

import entity.Gerente;
import java.io.FileOutputStream;
import java.io.PrintStream;

/**
 *
 * @author jakson
 */
public class SalvarGerente {
    
    public static String gerenteTxt = "src/arquivo/gerentes.txt";
    
    public void gravarGerente(Gerente a){
        
        
         FileOutputStream out;
        PrintStream arq;
        try {
            out = new FileOutputStream(gerenteTxt, true);
            arq = new PrintStream(out);
            arq.println(a.getNome());
            arq.println(a.getEndereco());
            arq.println(a.getCpf());
            arq.println(a.getDataDeNascimento());
            arq.println(a.getUsuario());
            arq.println(a.getAgencia());
            arq.println(a.getSenha());
            arq.close();
        } catch (Exception e) {
            System.err.println(e);
        }
    }
            
    
}
